package com.itheima.userservice.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController("/RedisStream")
public class RedisStreamController {

    @Autowired
    private RedisTemplate redisTemplate;

    @PostMapping("/test")
    public Map<String, Object> redisUser() {
    //todo::redis这个版本的包是没有这个方法的
    //redisTemplate.opsForStream()
        return null;
    }
}
